session=$1
tmux has-session -t $session
if [ $? != 0 ]
then
	tmux new-session -s $session -n Irssi -d "irssi"
	tmux attach -t $session
else
	echo 'SESSION ALREADY EXISTS'
fi
